/**
 * Created by will on 2017/9/21.
 */
$(function () {
    $("#public-style").load("./easytrip-header.html")
//    分页功能
    //完整功能
    layui.use(['laypage', 'layer'], function(){
        var laypage = layui.laypage
            ,layer = layui.layer;
    laypage.render({
        elem: 'hotelselect-paging'
        ,count: 100
        ,theme: '#45A2FF'
        ,groups:4
        ,layout: ['prev', 'page', 'next', 'skip']
        ,jump: function(obj){
            console.log(obj)
        }
    });
        laypage.render({
            elem: 'calendar-paging'
            ,count: 1000
            ,theme: '#45A2FF'
            ,groups:4
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj){
                console.log(obj)
            }
        });
    });

})